chore: require Dart SDK 3.8.0 across all packages#250
Merged
Conversation
222895c to
a4a22b6
Compare
The json_serializable / json_annotation versions used need Dart 3.8.0. Constraints are left as-is so consumers on Dart 3.8.0 still resolve the 3.8-compatible json versions rather than being forced to 3.9.0.
a4a22b6 to
3a17e3e
Compare
This was referenced Jun 29, 2026
kopy
approved these changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
3.0.0/3.4.0to>=3.8.0 <4.0.0in every package (and align the Flutter constraint to>=3.32.0, the release that ships Dart 3.8.0).3.27.4to3.32.0.Why
The
json_serializable/json_annotationversions these packages use require Dart 3.8.0. With the previous>=3.0.0floors, the declared SDK range did not match what the code generation toolchain actually needs.json constraints are intentionally left unchanged
json_serializable(^6.7.0/^6.11.1, dev) andjson_annotation(^4.8.1, runtime) are not bumped. The newest releases (json_serializable 6.14.0, json_annotation 4.12.0) require Dart 3.9.0. By keeping the existing caret constraints and setting the floor to 3.8.0, pub's SDK-aware resolution gives consumers on Dart 3.8.0 the highest 3.8-compatible json versions (≈ json_serializable 6.12.x, json_annotation 4.10.x), so consumers are held at 3.8.0 rather than being pushed to 3.9.0. Consumers on 3.9.0+ still get the newest versions.Consumer impact
Because
passkeysdepends on all of its platform implementations (includingpasskeys_web) as regular dependencies, the highest SDK floor in the tree applies to every consumer ofpasskeyson all platforms. This change therefore raises the effective minimum to Dart 3.8.0 for all consumers, which is intentional.Note
The
ci.ymlworkflow's Flutter version is bumped on the #249 branch, since that file is introduced there and does not yet exist onmain.Versions and CHANGELOGs are left to the Melos release tooling.